import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'gather_interface_image' })
export default class GatherInterfaceImage extends BaseEntity {
  @Column({ type: 'varchar', length: 250, name: 'img_code', comment: '图片编码', unique: true })
  @ApiProperty()
  imgCode: string;

  @Column({ type: 'varchar', length: 250, name: 'img_name', comment: '图片名称' })
  @ApiProperty()
  imgName: string;

  @Column({ type: 'varchar', name: 'img_url', nullable: true, comment: '图片链接' })
  @ApiProperty()
  imgUrl: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
